home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7907 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Date question
  5. Date: Thu, 29 Feb 96 13:56:15 GMT
  6. Organization: none
  7. Message-ID: <825602175snz@genesis.demon.co.uk>
  8. References: <4h3kpb$i3s@news.ysu.edu>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4h3kpb$i3s@news.ysu.edu> ab917@yfn.ysu.edu "Jerry Tomko" writes:
  15.  
  16. >
  17. >Hello.   Does anyone know where I can find a program that,
  18. >when given the month, day, and year, will determine the 
  19. >corrosponding day of the week (Sunday, Monday, Tuesday, etc..)? 
  20.  
  21. The standard C library provides a function called mktime() which can do this.
  22. The only question is whether it can cope with the range of dates that you
  23. are interested in.
  24.  
  25. -- 
  26. -----------------------------------------
  27. Lawrence Kirby | fred@genesis.demon.co.uk
  28. Wilts, England | 70734.126@compuserve.com
  29. -----------------------------------------
  30.